package node

type NodePicker interface {
	// Find the corresponding node through the key query
	PickNode(key string) (peer NodeGetter, ok bool)
}

type NodeGetter interface {
	Get(cacheName string, key string) ([]byte, error)
	Delete(cacheName string, key string) error
	Set(cacheName string, key string, value string, ttl ...int64) error
}
